<?php

//卡相关的配置信息

return [
    'operatorType' => [
        0 => '联通',
        1 => '电信',
        2 => '移动',
        3 => '广电',
        4 => '虚拟'
    ],

    //运

    'operatorFlag' => [
        0 => [130, 131, 132, 145, 146, 155, 156, 166, 167, 171, 175, 176, 185, 186],
        1 => [133, 149, 153, 173, 174, 177, 180, 181, 189, 191, 199],
        2 => [134, 135, 136, 137, 138, 139, 147, 148, 150, 151, 152, 157, 158, 159, 172, 178, 182, 183, 184, 187, 188, 195, 198],
        3 => [192],
        4 => [162, 165, 167, 170, 171]
    ],
    'logsType' => [
        0 => '订单操作',
        1 => '修改直播打卡'
    ],

//    按旧习惯设置的通用状态值



    'status' => [
        0 => '正常',
        1 => '禁用'
    ],

//    产品表里的is_product字段,
//    0:自动生产,1:手动生产
    'isProductType' => [
        0 => '自动生产',
        1 => '手动生产'
    ],
    'ordersType' => [
        0 => '不是转单',
        1 => '系统转单',
        2 => '人工转单'
    ],

//    卡的激活状态
    'activatStatus' => [
        0 => '未激活',
        1 => '已激活',
    ],

//    首充状态

    'firstStatus' => [
        0 => '未首充',
        1 => '已首充',
    ],
    'firstMoneyList' => [
       #['name' => '小于50', 'symbol' => 'elt', 'value' => 49.9],
        #['name' => '大于等于50小于100', 'symbol' => 'between', 'value' => [50, 100]],
        #['name' => '大于等于100', 'symbol' => 'egt', 'value' => 100]
	#['name' => '大于50小于100(包含50不包含100)', 'symbol' => 'between', 'value' => [50,99.99]],
        // ['name' => '小于50', 'symbol' => 'elt', 'value' => 49.9],
        // ['name' => '大于等于50小于100', 'symbol' => 'between', 'value' => [50, 100]],
        // ['name' => '大于等于100', 'symbol' => 'egt', 'value' => 100]
        ['name' => '大于50小于100(包含50不包含100)', 'symbol' => 'between', 'value' => [50,99.99]],
        ['name' => '小于100（不包含100）', 'symbol' => 'elt', 'value' => 99.99],
        ['name' => '等于大于100（包含100）', 'symbol' => 'egt', 'value' => 100],
        ['name' => '等于大于200（包含200）', 'symbol' => 'egt', 'value' => 200],
    ],

//    转单状态
    'transferStatus' => [
        0 => '等待解决',
        1 => '已转出流转',
        2 => '已解决'
    ],
//    订单来源类型

    'sourceType' => [
        1 => '抖音',
        2 => '导入',
        3 => 'H5',
        4 => '百度',
        5 => 'Api',
        6 => '供应商抖音',
        7 => '感叹号',
        8 => '小程序',
        11 => '拼多多',
        12 => '快手',
        13 => '京东',
        14 => '天猫',
        15 => '信息流'
    ],

//    订单状态


    'ordersStatus' => [
        0 => '提交中',
        1 => '提交上游',
        2 => '等待支付',
        3 => '需上传证件照',
        10 => '审核中',
        11 => '待发货',
        20 => '已发货',
        30 => '已签收',
        40 => '已激活',
        41 => '已充值',
        50 => '异常单',
        51 => '取消单',
        52 => '退款中',
        53 => '已退款',
        60 => '失败单',
        70 => '回收单'
    ],
//    在网状态
    'isOnlineStatus' => [
        0 => '未知',
        1 => "开通(在网,不欠费不停机)",
        2 => "高额半停机",
        3 => "高额半停机加局方半停",
        4 => "高额半停机加局方停机",
        5 => "局方半停",
        6 => "局方停机",
        7 => "局方停逾期欠费停",
        8 => "欠费停机",
        9 => "欠费停局方半停",
        10 => "欠费停机加局方停机",
        11 => "欠费销号",
        12 => "申请预销停机",
        13 => "申请停机",
        14 => "申请停,欠费双停",
        15 => "挂失停机",
        16 => "申请销号",
        17 => "已销户",
    ],
    //返费状态
    'rebateStatus' => [
        0 => '未开始返费',
        1 => '返费进行中',
        2 => '返费已完成'
    ],
//    订单账务审核状态
    'reviewStatus' => [
        0 => '未审核',
        1 => '审核通过',
        2 => '审核不通过'
    ],
//    数据员审核状态

    'dataReviewStatus' => [
        0 => '等待提交',
        1 => '等待审核',
        2 => '审核通过',
        3 => '审核不通过'
    ],
    'smsType' => [1 => '验证码', 2 => '通知', 3 => '营销'],
    'smsUseType' => [0 => '常规模板', 1 => '外呼模板'],
//    短信模板审核状态
    'smsTplVerifyStatus' => [1 => '待审核', 2 => '审核成功', 3 => '审核失败'],
//    短信发送状态
    'smsSendLogsStatus' => [0 => '发送成功', 1 => '发送失败', 2 => '等待回执', 3 => '准备发送'],
//    短信模板参数,名字对应字段

    'smsTplVerifyStatus' => [1 => '待审核', 2 => '审核成功', 3 => '审核失败'],

    'smsSendLogsStatus' => [0 => '发送成功', 1 => '发送失败', 2 => '等待回执', 3 => '准备发送'],

    'smsTplParams' => [
        '验证码' => 'code',
        'SKU靓号' => 'sku_number',
        '上游信息' => 'three_msg',
        '生产号码' => 'iccid',
        '物流公司' => 'express_company',
        '物流状态' => 'express_status',
        '派送员电话' => 'express_phone',
        '快递单号' => 'express_number',
        '激活状态' => 'activat_status',
        '充值状态' => 'first_status',
        '客服电话' => 'users_phone',
    ],
    //客服400电话
    'phone400' => '4001880976',
//    达人开播状态
    'anchorWorksStatus' => [0 => '正在直播', 1 => '已关播'],
//    合同状态
    'contractStatus' => [0 => '已签约', 1 => '未签约', 2 => '停签'],
    'serviceStatus' => [0 => '已接单', 1 => '跟进中', 2 => '已完成'],
//    客服分单模式,与字典字段service_assign_type值对应

    'phone400' => '4001880976',

    'anchorWorksStatus' => [0 => '正在直播', 1 => '已关播'],

    'contractStatus' => [0 => '已签约', 1 => '未签约', 2 => '停签'],
    'serviceStatus' => [0 => '已接单', 1 => '跟进中', 2 => '已完成'],

    'serviceAssignType' => [
        0 => '管理分配',
        1 => '状态分配',
        2 => '随机分配',
    ],
//    分配的数据缓存文件
    'serviceAssignTypeCacheFile' => 'serviceAssignTypeCacheFile',
//    客服跟进天数
    'serviceFollowDays' => 7,
    //    工作更进查询的方式对应options
//    'serviceWorkTypeList' => [
//        0 => '新接订单',
//        1 => '已跟进1天订单',
//        2 => '已跟进2天订单',
//        3 => '已跟进3天订单',
//        4 => '已跟进4天订单',
//        5 => '已跟进5天订单',
//        6 => '已跟进6天订单',
//        7 => '已跟进7天订单',
//        40 => '待跟进订单',
//        41 => '待转化订单',
//        42 => '跟进中订单',
//        43 => '已完结订单',
//    ],
//    外呼任务紧急程

    'serviceAssignTypeCacheFile' => 'serviceAssignTypeCacheFile',

    'serviceFollowDays' => 7,
    'serviceTaskWeightType' => [
        0 => '普通',
        1 => '紧急',
        2 => '特急'
    ],
    'serviceCallTaskType' => [
        0 => '创建',
        1 => '导入'
    ],
    'serviceCallSendMsgStatus' => [

//        type //类型 1:发送成功 4:发送失败(其他原因) 5:发送失败(volte处于开启状态)

        1 => '发送成功', 4 => '发送失败(其他原因)', 5 => '发送失败(volte处于开启状态)'
    ],
    'serviceCallStatus' => [
        0 => '等待外呼',
        1 => '标记未接听',
        2 => '标记已接听',
        3 => '回收且接听',
        4 => '不外呼已跳过'
    ],
    'serviceCallTaskStatus' => [
        0 => '等待完成',
        1 => '上传处理中',
        2 => '外呼完成'
    ],

//    外呼时,禁止修改定单的一些状态,field为orders表字段



    'forbidChangeStatus' => [
        0 => ['name' => '订单状态', 'field' => 'forbid_status'],
        1 => ['name' => '充值状态', 'field' => 'forbid_activat_status'],
        2 => ['name' => '激活状态', 'field' => 'forbid_first_status'],

//        3 => ['name' => '物流状态', 'field' => 'forbid_express_status']


    ]
];
